<local:DocumentBase x:Class="WPFExcelReport.TYTGB04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:GB="clr-namespace:WPFExcelReport;assembly=TGPBST"
                    xmlns:BOX="clr-namespace:WPFExcelReport;assembly=TGLLG"
                    xmlns:GP="clr-namespace:WPFExcelReport;assembly=TGPDAT" 
                    xmlns:BW="clr-namespace:WPFExcelReport;assembly=TGABEW"  
                      xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                     xmlns:me="clr-namespace:WPFExcelReport"
                    FontSize="16"
                    Name="TV"
                    Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </local:DocumentBase.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="Auto" />
        </Grid.RowDefinitions>
        <WrapPanel  Grid.Row="0" >
            <Button Content="{Binding Source={Localization:Translate Word=采购入库}}" Margin="20,0,0,0"  Click="EKGBCommand"/>
        </WrapPanel>
        <Grid Grid.Row="1" Grid.RowSpan="2"
              Name="ZoneWB"
              >
            <Grid.RowDefinitions>
                <RowDefinition   Height="Auto" />
                <RowDefinition   Height="1*" />
                <RowDefinition   Height="Auto" />
            </Grid.RowDefinitions>
            <GP:TGB04 Grid.Row="0" Name="cGB04" 
                            LO="01" 
                           LB="SS" 
                           LP="A       " 
                           />
            <BOX:TGB15 Grid.Row="1" Name="cWB"  IsPage="True" Rows="100" 
                           IsBusy="{Binding IsBusy,ElementName=TV}"   
                          IsAuto="True"
                           CART="{Binding ART,ElementName=cGB04}"  
                           LO="{Binding LO,ElementName=cGB04}" 
                           LB="{Binding LB,ElementName=cGB04}" 
                           LP="{Binding LP,ElementName=cGB04}" 
                           QTY="{Binding QTY,ElementName=cGB04}" 
                           BOX="{Binding BOX,ElementName=cGB04}" 
                           MU="{Binding MU,ElementName=cGB04}" 
                           FTAUTOSUM="True"
                           SKEY1="GPPARTIE" 
                           KEY1="GLBSTKG" 
                           IsEdit="{Binding IsEdit,ElementName=cGB04}"
                          IsKEY="{Binding IsKEY,ElementName=cGB04}"
                            EXAUF="{Binding KEY,ElementName=cGB04}" 
                       />
            <GB:TGB03 Grid.Row="2"
                       LO="{Binding LO,ElementName=cGB04}" 
                 LB="{Binding LB,ElementName=cGB04}" 
                 IsAuto="True"
                 EXAUF="{Binding KEY,ElementName=cGB04}" 
                />
        </Grid>

        <BW:TEKGB14  Grid.Row="1" Grid.RowSpan="2"
                      IsPage="True" Rows="100" 
                             LO="{Binding LO,ElementName=cGB04}" 
                           LB="{Binding LB,ElementName=cGB04}" 
                           LP="{Binding LP,ElementName=cGB04}" 
                       Visibility="Collapsed"
                       Name="ZoneEK"
                       />
    </Grid>

</local:DocumentBase>
    
